home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 December
/
PCWorld_2005-12_cd.bin
/
software
/
vyzkuste
/
pspad
/
pspad433inst_cz.exe
/
{app}
/
Context
/
ActionScript.DEF
next >
Wrap
Text File
|
2004-05-07
|
13KB
|
802 lines
;; PSPad code template for ActionScript
;; Author: Karel Pavelka
;; E-mail: webjob@seznam.cz
;; Update: 28.4.2004
;;
;; (black)
;; B (blue) HTML 1.0
;; D (dark gray) Non-standard ActionScript
;; F (fuchsia)
;; G (green)
;; M (maroon)
;; N (navy) Kusy kodu
;; P (purple)
;; R (red)
;;
;; Odsazeni: 2
;;
;; Sablona vznika postupne podle potreb, kritika a poznamky vitany!
;
[Macro definition]
%align3%=@C align=,align=,,center;left;right,'
%boolean%=@C boolean,,,true;false,"
%color%=@E color=,color=,,,'
%command%=@C command,,,allowscale;fullscreen;exep;quit;showmenu;trapallkeys,"
%condition%=@E podmφnka,,,,
%event%=@C udßlost,,,load;unload;enterFrame;mouseDown;mouseMove;mouseUp;keyDown;keyUP;data,
%face%=@F face=,face=,,,'
%frame%=@E snφmek,,,,
%href%=@O href=,href=,http://,html file (*.html;*.htm;*.php;*.php3;*.asp)|*.html;*.htm;*.php;*.php3;*.asp,'
%include%=@O include,include,,ActionScript(*.as)|*.as,
%keycode%=@E Φφseln² k≤d klßvesy,,,,
%level%=@C ·rove≥,,,0;1;2;3;4;5;6;7;8;9,
%loadi%=@P obrßzek,,,,,"
%init%=@E inicializace,,,,
%next%=@E next,,,,
%loadt%=@O textov² soubor,,,document (*.txt)|*.txt,"
%loadxml%=@O soubor,,,file (*.xml;*.php;*.php3;*.asp)|*.xml;*.php;*.php3;*.asp,"
%loops%=@E poΦet opakovßnφ,,,,,
%method%=@C metoda,,,get;post,"
%n%=@E Φφslo,,,,,
%on%=@C on,,,press;release;releaseOutside;rollOver;rollOut;dragOver;dragOut;keyPress'<BACKSPACE>';keyPress'<CAPSLOCK>';keyPress'<CONTROL>';keyPress'<DELETEKEY>';keyPress'<DOWN>';keyPress'<END>';keyPress'<ENTER>';keyPress'<ESCAPE>';keyPress'<HOME>';keyPress'<INSERT>';keyPress'<LEFT>';keyPress'<PGDN>';keyPress'<PGUP>';keyPress'<RIGHT>';keyPress'<SHIFT>';keyPress'<SPACE>';keyPress'<TAB>';keyPress'<UP>',
%scene%=@E scene,,,,,"
%size%=@E size=,size=,,,'
%target%=@C target=,target=,,_blank;_parent;_self;_top,'
%url%=@O soubor,,,file (*.swf)|*.swf,"
%variable%=@E prom∞nnß,,,,
%window%=@C window,,,_blank;_parent;_self;_top,
%x%=@E osa x,,,,,
%value%=@E hodnota,,,,,
%XML%=@E XML prom∞nnß,,,,
%y%=@E osa y,,,,,
;
;---------------------------------------------------------------------
; tagy HTML version 1.0, kterou Flash podporuje v dynamick²ch textov²ch polφch
;---------------------------------------------------------------------
;
[a |B odkaz bez podtr₧enφ]
<a %href% %target%>º|</a>
;
[a |B odkaz s podtr₧enφm]
<u><a %href%>º|</a></u>
;
[b |B tuΦnΘ pφsmo <b></b>]*CTRL+B
<b>º|</b>
;
[body |B t∞lo dokumentu]
<body>
º|
</body>
;
[br |B zalomenφ °ßdku]*CTRL+ENTER
<br>
;
[font |B nastavenφ pφsma]
<font %size% %face% %color%>º|</font>
;
[html |B vymezenφ dokumentu <html></html>]
<html>
º|
</html>
;
[HTMLs |B jednoduchß Üablona HTML strßnky]
%variable%=<html>
<body>
º|
</body>
</html>
;
[i |B kurzφva]
<i>º|</i>
;
[p |B odstavec]*SHIFT+CTRL+P
<p %align3%>
º|
</p>
;
[u |B podtr₧en² text]
<u>º|</u>
;
;
;---------------------------------------------------------------------
; ActionScript
;---------------------------------------------------------------------
;
;
[/*...*/ | p°φkaz comment pro vφce°ßdkov² komentß°]
/*
º|
*/
;
[break | p°φkaz k p°eruÜenφ cyklu]
break;
;
[continue | ukonΦφ krok cyklu a zaΦne od novΘho kroku nebo od nßv∞stφ]
continue;
;
[call |D provede skript p°ipojen² k urΦitΘmu nßv∞Ütφ snφmku]
call(%frame%);
;
[delete | odstranφ prom∞nnou]
delete %variable%;
;
[do_while | smyΦka provßdφ p°φkazy do spln∞nφ urΦenΘ podmφnky]
do {
|
} while (%condition%)
;
[else | urΦuje p°φkazy, kterΘ se provedou pokud nenφ spln∞na podmφnka if]
elese {
|
}
;
[exIMAGE |N naΦtenφ externφho obrßzku do prezentace]
createEmptyMovieClip(%variable%, %n%);
%variable%.loadMovie(%loadi%);
%variable%._visible = true;
%variable%._x=%x%;
%variable%._y=%y%;
;
[for | vytvo°φ cyklus, kter² provßdφ p°φkazy do spln∞nφ podmφnky]
for (%init%; %condition%; %next%){
|
}
;
[fscommand | FS p°φkaz]
fscommand(%command%, %boolean%);
;
[fscommandA | zabrßn∞nφ zm∞ny velikosti prezentace]
fscommand("allowscale","false");
;
[fscommandF | puÜt∞nφ prezentace na celou obrazovku]
fscommand("fullscreen","true");
;
[fscommandN | otev°enφ dokumentu *.txt v Notepadu z Flash prezentace]
fscommand("exep","notepad"+chr(9)+%loadt%);
;
[fscommandQ | ukonΦenφ prezentace]
fscommand("quit");
;
[fscommandS | zneviditeln∞nφ kontextovΘho menu]
fscommand("showmenu","false");
;
[fscommandT | zakßzanφ klßvesov²ch zkratek]
fscommand("trapallkeys","true");
;
[getURL | naΦte soubour na urΦenΘm URL]
getURL(%url%);
;
[gotoAndPlay | p°ejφt a spustit]
gotoAndPlay(|);
;
[gotoAndStop | p°ejφt a zastavit]
gotoAndStop(|);
;
[if | definovßnφ p°φkaz∙, kterΘ se provedou, pokud je spln∞nß podmφnka]
if (%condition%) {
|
}
;
[ifFrameLoaded |D ]
ifFrameLoaded()
;
[include | vlo₧φ ActionScriptu z externφho textovΘho dokumentu]
#include "%include%"
;
[initclip | inicializace]
#initclip |
;
[loadMovie | naΦφst movie]
loadMovie(%url%, %method%);
;
[loadMovieNum | naΦφst movie s urΦenφm ·rovn∞]
loadMovie(%url%, %level%);
;
[loadVariables | naΦte do movie clipu externφ prom∞nou z textovΘho souboru]
loadVariables(%loadt%, %method%);
;
[Mouse.hide | skryje kurzor v animaci]
Mouse.hide();
;
[Mouse.show | zobrazφ kurzor v animaci]
Mouse.show();
;
[nextScene | dalÜφ scΘna]
nextScene();
;
[nextFrame | nßsledujφcφ snφmek]
nextFrame();
;
[on | p°i°azenφ akce tlaΦφtku]
on (%on%) {
}
;
[on1 |N p°echod na jinou scΘnu po stisknutφ tlaΦφtka]
on(release) {
tellTarget (_root) {
gotoAndPlay (%scene%, %frame%)
}
}
;
[onJS |N odkaz na JavaScript]
on (release) {
getURL("Javascript:|");
}
;
[onClipEvent | p°i udßlosti klipu]
onClipEvent(%event%) {
}
;
[play | zaΦne p°ehrßvat Φasovou osu movie clipu z aktußlnφ pozice]
play();
;
[prevScene | p°edchßzejφcφ scΘna]
prevScene();
;
[useCodepage | povolenφ pou₧φvßnφ znakovΘ sady Unicode k zajiÜt∞nφ sprßvnΘho zobrazovßnφ pφsmen s diakritikou]
System.useCodepage=true;
;
[setDate | nastavφ den v m∞sφci]
setDate(|);
;
[setFullYear | nastavφ m∞sφc, rok a datum]
setFullYear(|);
;
[stop | zastavit p°ehrßvßnφ]
stop();
;
[stopAllSounds | zastavφ p°ehrßvßnφ vÜech zvuk∙]
stopAllSounds();
;
[stopDrag | ukonΦφ nßsledovßnφ kurzoru myÜi movie clipem]
stopDrag();
;
[targetPath | ]
targetPath();
;
[toggleHighQuality |D ]
toggleHighQuality()
;
[trace | v testovacφm m≤du zobrazφ v²raz v okn∞ Output]
trace("º|");
;
[undefined | nedefinovßno]
undefined
;
[unloadMovie | odstranit naΦtenou movie]
unloadMovie(%url%|);
;
[unloadMovieNum | odstranit naΦtenou movie z ·rovn∞]
unloadMovieNum(%level%);
;
[var | definuje lokßlnφ prom∞nnΘ obsa₧enΘ uvnit° funkce]
var %variable% = %value%;
;
[XML | vytvo°enφ instance XML objektu]
%XML% = new XML();
;
[XMLattributes | reprezentuje atribut v objektu XMLNode]
%XML%.attributes;
;
[XMLload | ]
%XML%.load(%loadxml%);
;
[XMLloaded | ov∞°enφ dokonΦenφ procesu vklßdßnφ XML dokumentu]
%XML%.loaded;
;
[XMLignoreWhite| ignorace bφl²ch znak∙]
%XML%.ignoreWhite = true;
;
[XMLonData | ]
%XML%.onData(%xmlsrc%);
;
[XMLonLoad | ]
%XML%.onLoad(success);
;
[XMLNode.parentNode | vracφ rodiΦovsk² n≤d referenΦnφho n≤du]
.parentNode;
;
[XMLsend | odeslßnφ XML objektu]
%XML%.send(%url%, %window%);
;
[XMLxmlDec1 | vracφ XML deklaraci XML]
%XML%.xmlDec1|
;
[Keywords]
abs
Accessibility
acos
add
addItem
addItemAt
addListener
addProperty
align
alpha
and
appendChild
apply
applyChanges
arguments
Array
arrow
asin
atan
atan2
attachMovie
attachSound
attributes
autoSize
background
backgroundColor
backgroundDisabled
BACKSPACE
beginFill
beginGradientFill
bold
Boolean
border
borderColor
bottomScroll
bullet
call
callee
caller
capabilities
CAPSLOCK
ceil
clear
clearInterval
cloneNode
close
color
Color
concat
connect
contentType
CONTROL
cos
createElement
createEmptyMovieClip
createTextField
createTextNode
currentframe
curveTo
CustomActions
darkshadow
data
Date
DELETEKEY
do
docTypeDecl
DOWN
dragOut
dragOver
droptarget
duplicateMovieClip
duration
embedFonts
enabled
END
endFill
endinitclip
ENTER
enterFrame
escape
ESCAPE
eval
exp
face
false
firstChild
floor
focusEnabled
focusrect
focusRectInner
focusRectOuter
font
foregroundDisabled
framesloaded
fromCharCode
fscommand
FStyleFormat
get
getAscii
getBeginIndex
getBounds
getBytesLoaded
getBytesTotal
getCaretIndex
getCode
getData
getDate
getDay
getDepth
getEnabled
getEndIndex
getFocus
getFontList
getFullYear
getGroupName
getHours
getItemAt
getLabel
getLength
getMilliseconds
getMinutes
getMonth
getNewTextFormat
getPan
getPaneHeight
getPaneWidth
getProperty
getRGB
getRowCount
getScrollContent
getScrollPosition
getSeconds
getSelectedIndex
getSelectedIndices
getSelectedItem
getSelectedItems
getSelectMultiple
getState
getTextExtent
getTextFormat
getTime
getTimer
getTimezoneOffset
getTransform
getURL
getUTCDate
getUTCDay
getUTCFullYear
getUTCMilliseconds
getUTCMinutes
getUTCMonth
getUTCSeconds
getUTCHours
getValue
getVersion
getVolume
getYear
global
globalStyleFormat
globalToLocal
gotoAndPlay
gotoAndStop
hasAccessibility
hasAudio
hasAudioEncoder
hasChildNodes
hasVideoEncoder
height
hide
highlight
highlight3D
highquality
hitArea
HOME
hscroll
html
htmlText
charAt
charCodeAt
check
childNodes
ifFrameLoaded
ignoreWhite
include
indent
indexOf
initclip
INSERT
insertBefore
install
int
isActive
isDown
isFinite
isNaN
isToggled
italic
join
Key
keyDown
keyPress
keyUp
lastChild
lastIndexOf
leading
LEFT
leftMargin
length
lineStyle
lineTo
list
LN10
LN2
load
loaded
loadMovie
loadMovieNum
loadScrollContent
loadSound
loadVariables
loadVariablesNum
LoadVars
localToGlobal
log
LOG10E
LOG2E
Math
MAX_VALUE
maxhscroll
maxChars
maxscroll
mbchr
mblength
mbord
mbsubstring
min
MIN_VALUE
Mouse
mouseDown
mouseMove
mouseUp
moveTo
multiline
name
NaN
NEGATIVE_INFINITY
newline
nextFrame
nextScene
nextSibling
nodeName
nodeType
nodeValue
not
null
Number
Object
onClipEvent
onClose
onConnect
onData
onDragOut
onDragOver
onEnterFrame
onChanged
onKeyDown
onKeyUp
onKillFocus
onLoad
onMouseDown
onMouseMove
onMouseUp
onPress
onRelease
onReleaseOutside
onResize
onRollOut
onRollOver
onScroller
onSetFocus
onSoundComplete
onUnload
onXML
ord
parent
parentNode
parseFloat
parseInt
parseXML
password
PGDN
PGUP
PI
pixelAspectRatio
play
pop
position
POSITIVE_INFINITY
pow
press
prevFrame
previousSibling
prevScene
print
printAsBitmap
printAsBitmapNum
printNum
proto__
prototype
push
quality
radioDot
random
refreshPane
registerClass
registerSkinElement
release
releaseOutside
removeAll
removeItemAt
removeListener
removeMovieClip
removeNode
removeTextField
replaceItemAt
replaceSel
restrict
reverse
RIGHT
rightMargin
rollOut
rollOver
root
rotation
round
scaleMode
screenColor
screenDPI
screenResolutionX
screenResolutionY
scroll
scrollTrack
selectable
selection
Selection
selectionDisabled
selectionUnfocused
send
sendAndLoad
set
setAutoHideScrollBar
setClickHandler
setData
setDragContent
setEditable
setEnabled
setFocus
setFullYear
setGroupName
setHorizontal
setHours
setHScroll
setChangeHandler
setInterval
setItemSymbol
setLabel
setLabelPlacement
setLargeScroll
setMask
setMilliseconds
setMinutes
setMonth
setNewTextFormat
setPan
setProperty
setRGB
setRowCount
setScrollContent
setScrollPosition
setScrollProperties
setScrollTarget
setSeconds
setSelectedIndex
setSelectedIndices
setSelection
setSelectMultiple
setSize
setSmallScroll
setState
setStyleProperty
setTextFormat
setTime
setTransform
setUTCDate
setUTCFullYear
setUTCMilliseconds
setUTCMinutes
setUTCMonth
setUTCSeconds
setUTCHours
setValue
setVolume
shadow
shift
SHIFT
show
showMenu
sin
size
slice
sort
sortItemsBy
sortOn
Sound
soundbuftime
SPACE
splice
split
sqrt
SQRT1_2
SQRT2
Stage
Stagealign
start
startDrag
status
stop
stopAllSounds
stopDrag
String
substr
substring
super
swapDepths
System
TAB
tabEnabled
tabChildren
tabIndex
tabStops
tan
target
targetPath
tellTarget
text
textAlign
textBold
textColor
textDisabled
textFont
TextFormat
textHeight
textIndent
textItalic
textLeftMargin
textRightMargin
textSelected
textSize
textUnderline
textWidth
toggleHighQuality
toLowerCase
toString
totalframes
toUpperCase
trace
trackAsMenu
true
type
undefined
underline
unescape
uninstall
unload
unloadMovie
unloadMovieNum
unshift
unwatch
UP
updateAfterEvent
url
useHandCursor
UTC
valueOf
variable
visible
watch
width
wordWrap
XML
xmlDecl
XMLSocket
xmouse
xscale
ymouse
yscale